home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / hershey / src / hershey.h < prev    next >
C/C++ Source or Header  |  1994-07-15  |  10KB  |  166 lines

  1. /* hershey.h: this file contains prototypes for the functions in
  2.  *  the hershey font library (variously named hershey.lib, hershey.a, etc.)
  3.  *
  4.  *  If your compiler supports prototypes, do a #define __PROTOTYPE__
  5.  *  before compiling (usually -D__PROTOTYPE__)
  6.  *
  7.  *  This little file courtesy of Dr. Charles E. Campbell, Jr.
  8.  */
  9. #ifndef HERSHEY_H
  10. #define HERSHEY_H
  11.  
  12. #ifdef AZTEC_C
  13. # ifndef AMIGA
  14. #  define AMIGA
  15. # endif
  16. #else
  17. # ifdef AMIGA
  18. #  ifndef AZTEC_C
  19. #   define AZTEC_C
  20. #  endif
  21. # endif
  22. #endif
  23.  
  24. #ifndef __PROTOTYPE__
  25. #ifdef AZTEC_C
  26. #define __PROTOTYPE__
  27. #endif
  28. #ifdef sgi
  29. #define __PROTOTYPE__
  30. #endif
  31. #endif
  32.  
  33. #ifdef __PROTOTYPE__
  34.  
  35. void check_loaded(char *);                             /* check.c         */
  36. void hsetpath_( char *, int *, int);                   /* fhtext.c        */
  37. void hsetpa_( char *, int *, int);                     /* fhtext.c        */
  38. void hfont_( char *, int *, int);                      /* fhtext.c        */
  39. void htextsize_( float *, float *);                    /* fhtext.c        */
  40. void htexts_( float *, float *);                       /* fhtext.c        */
  41. int hboxtext_( float *, float *, float *, float *,     /* fhtext.c        */
  42.    char *, int *, int);
  43. int hboxte_( float *, float *, float *, float *,       /* fhtext.c        */
  44.    char *, int *, int);
  45. int hboxfit_( float *, float *, int *);                /* fhtext.c        */
  46. int hboxfi_( float *, float *, int *);                 /* fhtext.c        */
  47. void htextang_(float *);                               /* fhtext.c        */
  48. void htexta_(float *);                                 /* fhtext.c        */
  49. int hdrawchar_(char *);                                /* fhtext.c        */
  50. int hdrawc_(char *);                                   /* fhtext.c        */
  51. int hcharstr_( char *, int *, int);                    /* fhtext.c        */
  52. int hchars_( char *, int *, int);                      /* fhtext.c        */
  53. float hgetfontheight_(void);                           /* fhtext.c        */
  54. float hgetfh_(void);                                   /* fhtext.c        */
  55. float hgetfontwidth_(void);                            /* fhtext.c        */
  56. float hgetfw_(void);                                   /* fhtext.c        */
  57. float hgetdecender_(void);                             /* fhtext.c        */
  58. float hgetde_(void);                                   /* fhtext.c        */
  59. float hgetascender_(void);                             /* fhtext.c        */
  60. float hgetas_(void);                                   /* fhtext.c        */
  61. void hgetfontsize_( float *, float *);                 /* fhtext.c        */
  62. void hgetfs_( float *, float *);                       /* fhtext.c        */
  63. void hgetcharsize_( char *, float *, float *);         /* fhtext.c        */
  64. void hgetch_( char *, float *, float *);               /* fhtext.c        */
  65. void hfixedwidth_(int *);                              /* fhtext.c        */
  66. void hfixed_(int *);                                   /* fhtext.c        */
  67. void hcentertext_(int *);                              /* fhtext.c        */
  68. void hcente_(int *);                                   /* fhtext.c        */
  69. void hrightjustify_(int *);                            /* fhtext.c        */
  70. void hright_(int *);                                   /* fhtext.c        */
  71. void hleftjustify_(int *);                             /* fhtext.c        */
  72. void hleftj_(int *);                                   /* fhtext.c        */
  73. int hnumchars_(void);                                  /* fhtext.c        */
  74. int hnumch_(void);                                     /* fhtext.c        */
  75. float hstrlength_( char *, int *, int);                /* fhtext.c        */
  76. float hstrle_( char *, int);                           /* fhtext.c        */
  77. char * hallocate(unsigned);                            /* halloc.c        */
  78. void hfont(char *);                                    /* htext.c         */
  79. int hnumchars(void);                                   /* htext.c         */
  80. void hsetpath(char *);                                 /* htext.c         */
  81. void hgetcharsize(char, float *, float *);             /* htext.c         */
  82. void hdrawchar(int);                                   /* htext.c         */
  83. void htextsize(float,float);                           /* htext.c         */
  84. float hgetfontwidth(void);                             /* htext.c         */
  85. float hgetfontheight(void);                            /* htext.c         */
  86. void hgetfontsize(float *, float *);                   /* htext.c         */
  87. float hgetdecender(void);                              /* htext.c         */
  88. float hgetascender(void);                              /* htext.c         */
  89. void hcharstr(char *);                                 /* htext.c         */
  90. float hstrlength(char *);                              /* htext.c         */
  91. void hboxtext(float, float, float, float, char *);     /* htext.c         */
  92. void hboxfit(float, float, int);                       /* htext.c         */
  93. void hcentertext(int);                                 /* htext.c         */
  94. void hrightjustify(int);                               /* htext.c         */
  95. void hleftjustify(int);                                /* htext.c         */
  96. void hfixedwidth(int);                                 /* htext.c         */
  97. void htextang(float);                                  /* htext.c         */
  98.  
  99. #else    /* __PROTOTYPE__ */
  100.  
  101. extern void check_loaded();                            /* check.c         */
  102. extern void hsetpath_();                               /* fhtext.c        */
  103. extern void hsetpa_();                                 /* fhtext.c        */
  104. extern void hfont_();                                  /* fhtext.c        */
  105. extern void htextsize_();                              /* fhtext.c        */
  106. extern void htexts_();                                 /* fhtext.c        */
  107. extern int hboxtext_();                                /* fhtext.c        */
  108. extern int hboxte_();                                  /* fhtext.c        */
  109. extern int hboxfit_();                                 /* fhtext.c        */
  110. extern int hboxfi_();                                  /* fhtext.c        */
  111. extern void htextang_();                               /* fhtext.c        */
  112. extern void htexta_();                                 /* fhtext.c        */
  113. extern int hdrawchar_();                               /* fhtext.c        */
  114. extern int hdrawc_();                                  /* fhtext.c        */
  115. extern int hcharstr_();                                /* fhtext.c        */
  116. extern int hchars_();                                  /* fhtext.c        */
  117. extern float hgetfontheight_();                        /* fhtext.c        */
  118. extern float hgetfh_();                                /* fhtext.c        */
  119. extern float hgetfontwidth_();                         /* fhtext.c        */
  120. extern float hgetfw_();                                /* fhtext.c        */
  121. extern float hgetdecender_();                          /* fhtext.c        */
  122. extern float hgetde_();                                /* fhtext.c        */
  123. extern float hgetascender_();                          /* fhtext.c        */
  124. extern float hgetas_();                                /* fhtext.c        */
  125. extern void hgetfontsize_();                           /* fhtext.c        */
  126. extern void hgetfs_();                                 /* fhtext.c        */
  127. extern void hgetcharsize_();                           /* fhtext.c        */
  128. extern void hgetch_();                                 /* fhtext.c        */
  129. extern void hfixedwidth_();                            /* fhtext.c        */
  130. extern void hfixed_();                                 /* fhtext.c        */
  131. extern void hcentertext_();                            /* fhtext.c        */
  132. extern void hcente_();                                 /* fhtext.c        */
  133. extern void hrightjustify_();                          /* fhtext.c        */
  134. extern void hright_();                                 /* fhtext.c        */
  135. extern void hleftjustify_();                           /* fhtext.c        */
  136. extern void hleftj_();                                 /* fhtext.c        */
  137. extern in